package com.ruoyi.business.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.AlarmdatahisMapper;
import com.ruoyi.business.domain.Alarmdatahis;
import com.ruoyi.business.service.IAlarmdatahisService;

/**
 * 报警记录Service业务层处理
 *
 * @author DL
 * @date 2025-07-02
 */
@Service
public class AlarmdatahisServiceImpl extends ServiceImpl<AlarmdatahisMapper,Alarmdatahis> implements IAlarmdatahisService
{
    @Autowired
    private AlarmdatahisMapper alarmdatahisMapper;

    /**
     * 查询报警记录
     *
     * @param ID 报警记录主键
     * @return 报警记录
     */
    @Override
    public Alarmdatahis selectAlarmdatahisByID(Long ID)
    {
        return alarmdatahisMapper.selectAlarmdatahisByID(ID);
    }

    /**
     * 查询报警记录列表
     *
     * @param alarmdatahis 报警记录
     * @return 报警记录
     */
    @Override
    public List<Alarmdatahis> selectAlarmdatahisList(Alarmdatahis alarmdatahis)
    {
        return alarmdatahisMapper.selectAlarmdatahisList(alarmdatahis);
    }

    /**
     * 新增报警记录
     *
     * @param alarmdatahis 报警记录
     * @return 结果
     */
    @Override
    public int insertAlarmdatahis(Alarmdatahis alarmdatahis)
    {
        return alarmdatahisMapper.insertAlarmdatahis(alarmdatahis);
    }

    /**
     * 修改报警记录
     *
     * @param alarmdatahis 报警记录
     * @return 结果
     */
    @Override
    public int updateAlarmdatahis(Alarmdatahis alarmdatahis)
    {
        return alarmdatahisMapper.updateAlarmdatahis(alarmdatahis);
    }

    /**
     * 批量删除报警记录
     *
     * @param IDs 需要删除的报警记录主键
     * @return 结果
     */
    @Override
    public int deleteAlarmdatahisByIDs(Long[] IDs)
    {
        return alarmdatahisMapper.deleteAlarmdatahisByIDs(IDs);
    }

    /**
     * 删除报警记录信息
     *
     * @param ID 报警记录主键
     * @return 结果
     */
    @Override
    public int deleteAlarmdatahisByID(Long ID)
    {
        return alarmdatahisMapper.deleteAlarmdatahisByID(ID);
    }
}
